package com.gongpingjialoan.bean;

import java.util.List;

/**
 * Created by Administrator on 2016/8/4.
 */
public class VipAppiontCarBean {


    /**
     * status : error
     * msg : 心愿列表已满
     * data : {"appoint_list":[{"title":"奥迪Q52015款 2.0T 手自一体 40TFSI 技术型","region":"","thumbnail":"http://gongpingjia.qiniudn.com/83284fe70e78139c50b8af10b9c2f830446be293","price":"29.80","car_id":60539994,"id":7},{"title":"奥迪A4L2013款 2.0T 35TFSI quattro个性运动版","region":"成都市锦江区皇经楼路299号","thumbnail":"http://gongpingjia.qiniudn.com/402c21eda92cc912a2e4dd43642c9fbe24f71cd6","price":"24.68","car_id":60765166,"id":8},{"title":"奥迪Q3(进口)2012款 2.0T 35 TFSI quattro 舒适型","region":"成都市成华区东三环路二段77号","thumbnail":"http://gongpingjia.qiniudn.com/1ba2487fec31f4107eb4ebf8b7587ad344a66375","price":"23.88","car_id":60557086,"id":9},{"title":"奥迪A4L","region":"成都","thumbnail":"http://gongpingjia.qiniudn.com/4316e7a4d1973d7dfbcc157e8004ecab1aedc5c1","price":"20.80","car_id":61175712,"id":12},{"title":"奔驰C级2013款 1.8T C 260 时尚型","region":"四川省成都市","thumbnail":"http://gongpingjia.qiniudn.com/0b2c18acf27f9b202eb24e6f1446f15826ab4e69","price":"21.98","car_id":60892019,"id":13}],"max_count":5}
     */

    private String status;
    private String msg;
    /**
     * appoint_list : [{"title":"奥迪Q52015款 2.0T 手自一体 40TFSI 技术型","region":"","thumbnail":"http://gongpingjia.qiniudn.com/83284fe70e78139c50b8af10b9c2f830446be293","price":"29.80","car_id":60539994,"id":7},{"title":"奥迪A4L2013款 2.0T 35TFSI quattro个性运动版","region":"成都市锦江区皇经楼路299号","thumbnail":"http://gongpingjia.qiniudn.com/402c21eda92cc912a2e4dd43642c9fbe24f71cd6","price":"24.68","car_id":60765166,"id":8},{"title":"奥迪Q3(进口)2012款 2.0T 35 TFSI quattro 舒适型","region":"成都市成华区东三环路二段77号","thumbnail":"http://gongpingjia.qiniudn.com/1ba2487fec31f4107eb4ebf8b7587ad344a66375","price":"23.88","car_id":60557086,"id":9},{"title":"奥迪A4L","region":"成都","thumbnail":"http://gongpingjia.qiniudn.com/4316e7a4d1973d7dfbcc157e8004ecab1aedc5c1","price":"20.80","car_id":61175712,"id":12},{"title":"奔驰C级2013款 1.8T C 260 时尚型","region":"四川省成都市","thumbnail":"http://gongpingjia.qiniudn.com/0b2c18acf27f9b202eb24e6f1446f15826ab4e69","price":"21.98","car_id":60892019,"id":13}]
     * max_count : 5
     */

    private DataEntity data;

    public void setStatus(String status) {
        this.status = status;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public String getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }

    public DataEntity getData() {
        return data;
    }

    public static class DataEntity {
        private int max_count;
        /**
         * title : 奥迪Q52015款 2.0T 手自一体 40TFSI 技术型
         * region :
         * thumbnail : http://gongpingjia.qiniudn.com/83284fe70e78139c50b8af10b9c2f830446be293
         * price : 29.80
         * car_id : 60539994
         * id : 7
         */

        private List<AppointListEntity> appoint_list;

        public void setMax_count(int max_count) {
            this.max_count = max_count;
        }

        public void setAppoint_list(List<AppointListEntity> appoint_list) {
            this.appoint_list = appoint_list;
        }

        public int getMax_count() {
            return max_count;
        }

        public List<AppointListEntity> getAppoint_list() {
            return appoint_list;
        }

        public static class AppointListEntity {
            private String title;
            private String region;
            private String thumbnail;
            private String price;
            private String chat_id;
            private String contact;
            private int car_id;
            private int record_id;


            @Override
            public int hashCode() {
                return  car_id;
            }

            @Override
            public boolean equals(Object o) {
                if (this == o)
                {
                    return true;
                }
                if (o.getClass() == AppointListEntity.class)
                {
                    AppointListEntity n = (AppointListEntity)o;
                    return n.car_id == car_id;
                }
                return false;
            }

            public String getChat_id() {
                return chat_id;
            }

            public void setChat_id(String chat_id) {
                this.chat_id = chat_id;
            }

            public String getContact() {
                return contact;
            }

            public void setContact(String contact) {
                this.contact = contact;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public void setRegion(String region) {
                this.region = region;
            }

            public void setThumbnail(String thumbnail) {
                this.thumbnail = thumbnail;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public void setCar_id(int car_id) {
                this.car_id = car_id;
            }

            public void setId(int id) {
                this.record_id = id;
            }

            public String getTitle() {
                return title;
            }

            public String getRegion() {
                return region;
            }

            public String getThumbnail() {
                return thumbnail;
            }

            public String getPrice() {
                return price;
            }

            public int getCar_id() {
                return car_id;
            }

            public int getId() {
                return record_id;
            }
        }
    }
}
